// 导入art
import {
  artList
} from '../../api/art.js'
export default {
  namespaced: true,
  state () {
    return {
      cateList: []
    }
  },
  mutations: {
    setcateList (state, List) {
      state.cateList = List
    }
  },
  getters: {},
  actions: {
    // 获取art里面的数据,把数据给state
    async articleList (centext) {
      const res = await artList()
      console.log(res, 22222)
      // if (res.code === 0) {
      centext.commit('setcateList', res.data.data)
      // }
    }

  }
}
